<?php
require 'Home/Model/Model.php';
	class DetailModel extends Model{
		function __Construct(){
			parent::__Construct();
		}
		function getNewsInfo($id){
			$sql='select * from news where ntid='.$id;
		//echo $sql;
			$data=$this->conn->query($sql);
			//var_dump($data);
			return $data;
		}
		
		function getAdmin($id){
			$sql='select * from admins where adminid='.$id;
		//echo $sql;
			$data=$this->conn->query($sql);
			//var_dump($data);
			return $data;
		}
	}
?>